<?php

class Contact extends Module
{

	function __construct ($db){
		$this->set_db($db);
	}

	function get_all_subject(){
		return $this->get_all("contact_subject");
	}

	function get_subject($id){
		return $this->get("contact_subject", "id = $id");
	}

	function add_contact($data){
		$lastid = $this->db->insert("contact", $data);
		return $lastid;
	}
}

?>